package UMC.Web.UI;

import UMC.Web.UICell;
import UMC.Web.UIEventText;
import UMC.Web.WebMeta;

import java.util.LinkedList;
import java.util.List;

public class UIIcon extends UICell {

    List<UIEventText> items = new LinkedList<>();
    WebMeta data = new WebMeta();

    public UIIcon() {
        data.put("icons", items);
    }

    public UIIcon add(UIEventText eventText) {
        items.add(eventText);
        return this;
    }
    public UIIcon cellCount(int count)
    {
        this.style().name("cell-count", count);
        return this;
    }
    @Override
     public WebMeta data() {
        return data;
    }

    @Override
    public String type() {
        return "Icons";
    }

    public int size() {
        return items.size();
    }
}
